<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="../../../Themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../Themes/icon.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/demo.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/common.css">

	</head>

	<body style="padding: 0px;">
		<div class="easyui-layout" style="width:100%;height:600px;">
			<div data-options="region:'center'">
				<div>
					<table id="dg" class="table_style">
					</table>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../../JS/jquery.min.js"></script>
	<script type="text/javascript" src="../../../JS/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../../JS/common.js"></script>
	<script type="text/javascript" src="../../../JS/Remind/RemindShare.js"></script>
	<script>
		$(document).ready(function() {
			getRemindData();
			var data = gRemindData[CHECK_DATA];
			getTable();
			$('#dg').datagrid('loadData', data);
		});

		function getTable() {
			$('#dg').datagrid({
				method: 'get',
				pagination: 'true',
				rownumbers: 'true',
				fitColumns: 'false',
				singleSelect: 'true',
				height: 350,
				/*表格中的列名以及各自列名的ID*/
				columns: [
					[{
							field: 'ID',
							title: 'ID',
							width: '5%',
							align: 'center'
						},

						{
							field: 'CYCLENAME',
							title: '名称',
							width: '20%',
							align: 'center'
						},
						{
							field: 'EXAMINATION_TYPE',
							title: '周期类型',
							width: '20%',
							align: 'center'
						},
						{
							field: 'EXAMINATION_TIME',
							title: '检查时间',
							width: '10%',
							align: 'center'
						},
						{
							field: 'REMIND_TIME',
							title: '提醒时间',
							width: '10%',
							align: 'center',
							formatter: function(value, row, index) {
								return value + "天";
							}
						},
						{
							field: 'ISACTIVE',
							title: '是否启用',
							width: '8%',
							align: 'center',
							formatter: function(value, row, index) {
								if(value == 1) {
									return "启用";
								} else {
									return "不启用";
								}
							}
						},

					]

				],
			});
			//		$('#dg').datagrid('hideColumn', 'ID');
		}
	</script>

</html>